# Contributor: Jakob Meier <comcloudway@ccw.icu>
# Maintainer: Jakob Meier <comcloudway@ccw.icu>
pkgname=g4music
pkgver=3.5.2
pkgrel=0
pkgdesc="Fast fluent lightweight music player written in GTK4, with a beautiful and adaptive user interface"
url="https://gitlab.gnome.org/neithern/g4music"
arch="all"
license="GPL-3.0-only"
subpackages="$pkgname-lang"
makedepends="
	cmake
	desktop-file-utils
	gettext-dev
	gst-plugins-base-dev
	gstreamer-dev
	libadwaita-dev
	meson
	vala
	"
source="https://gitlab.gnome.org/neithern/g4music/-/archive/v$pkgver/g4music-v$pkgver.tar.gz"
builddir="$srcdir/g4music-v$pkgver"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
46f580672745a0374dd571f47396b3c7530d3ccb40afdbdf2640714a3151ad4e4152dd23274749f9cc2f3af6caf4315304530650a21bd67964d6833940c31a97  g4music-v3.5.2.tar.gz
"
